home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / Developer Essentials Jul 90 / DTS Sample Code / Macintosh Sample Code / Monthly Releases (Compressed) / MacDTS.Sample.Code.90.02.sit / SC.014.CPlusTESample / TECommon.h < prev    next >
MacBinary  |  1989-10-01  |  7.0 KB  |  [TEXT/MPS ]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Sun Oct 1 00:00:00 1989, modified Sun Oct 1 00:00:00 1989, creator 'MPS ', type ASCII, 6627 bytes "TECommon.h" , at 0x1a63 316 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[MPS ]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0a 54 45 43 6f 6d 6d | 6f 6e 2e 68 00 00 00 00 |..TEComm|on.h....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 50 53 | 20 01 00 00 00 00 00 00 |.TEXTMPS| .......|
|00000050| 00 00 00 00 00 19 e3 00 | 00 01 3c a1 4b 3c 40 a1 |........|..<.K<@.|
|00000060| 4b 3c 40 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |K<@.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 f9 de 00 00 |........|........|
|00000080| 2f 2a 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |/*------|--------|
|00000090| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000000a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000000b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000000c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000000d0| 0d 23 0d 23 09 41 70 70 | 6c 65 20 4d 61 63 69 6e |.#.#.App|le Macin|
|000000e0| 74 6f 73 68 20 44 65 76 | 65 6c 6f 70 65 72 20 54 |tosh Dev|eloper T|
|000000f0| 65 63 68 6e 69 63 61 6c | 20 53 75 70 70 6f 72 74 |echnical| Support|
|00000100| 0d 23 0d 23 09 4d 75 6c | 74 69 46 69 6e 64 65 72 |.#.#.Mul|tiFinder|
|00000110| 2d 41 77 61 72 65 20 53 | 69 6d 70 6c 65 20 54 65 |-Aware S|imple Te|
|00000120| 78 74 45 64 69 74 20 53 | 61 6d 70 6c 65 20 41 70 |xtEdit S|ample Ap|
|00000130| 70 6c 69 63 61 74 69 6f | 6e 0d 23 0d 23 09 43 50 |plicatio|n.#.#.CP|
|00000140| 6c 75 73 54 45 53 61 6d | 70 6c 65 0d 23 0d 23 09 |lusTESam|ple.#.#.|
|00000150| 54 45 43 6f 6d 6d 6f 6e | 2e 68 09 2d 09 43 2b 2b |TECommon|.h.-.C++|
|00000160| 20 61 6e 64 20 52 65 7a | 20 73 6f 75 72 63 65 0d | and Rez| source.|
|00000170| 23 0d 23 09 43 6f 70 79 | 72 69 67 68 74 20 a9 20 |#.#.Copy|right . |
|00000180| 31 39 38 39 20 41 70 70 | 6c 65 20 43 6f 6d 70 75 |1989 App|le Compu|
|00000190| 74 65 72 2c 20 49 6e 63 | 2e 0d 23 09 41 6c 6c 20 |ter, Inc|..#.All |
|000001a0| 72 69 67 68 74 73 20 72 | 65 73 65 72 76 65 64 2e |rights r|eserved.|
|000001b0| 0d 23 0d 23 09 56 65 72 | 73 69 6f 6e 73 3a 09 0d |.#.#.Ver|sions:..|
|000001c0| 23 09 09 09 31 2e 32 30 | 09 09 09 09 09 31 30 2f |#...1.20|.....10/|
|000001d0| 38 39 0d 23 09 09 09 31 | 2e 31 30 20 09 09 09 09 |89.#...1|.10 ....|
|000001e0| 09 30 37 2f 38 39 0d 23 | 09 09 09 31 2e 30 30 20 |.07/89.#|...1.00 |
|000001f0| 09 09 09 09 09 30 34 2f | 38 39 0d 23 09 0d 23 09 |.....04/|89.#..#.|
|00000200| 43 6f 6d 70 6f 6e 65 6e | 74 73 3a 0d 23 09 09 09 |Componen|ts:.#...|
|00000210| 43 50 6c 75 73 54 45 53 | 61 6d 70 6c 65 2e 6d 61 |CPlusTES|ample.ma|
|00000220| 6b 65 09 09 4f 63 74 6f | 62 65 72 20 31 2c 20 31 |ke..Octo|ber 1, 1|
|00000230| 39 38 39 0d 23 09 09 09 | 54 41 70 70 6c 69 63 61 |989.#...|TApplica|
|00000240| 74 69 6f 6e 43 6f 6d 6d | 6f 6e 2e 68 09 4f 63 74 |tionComm|on.h.Oct|
|00000250| 6f 62 65 72 20 31 2c 20 | 31 39 38 39 0d 23 09 09 |ober 1, |1989.#..|
|00000260| 09 54 41 70 70 6c 69 63 | 61 74 69 6f 6e 2e 68 09 |.TApplic|ation.h.|
|00000270| 09 09 4f 63 74 6f 62 65 | 72 20 31 2c 20 31 39 38 |..Octobe|r 1, 198|
|00000280| 39 0d 23 09 09 09 54 44 | 6f 63 75 6d 65 6e 74 2e |9.#...TD|ocument.|
|00000290| 68 09 09 09 09 4f 63 74 | 6f 62 65 72 20 31 2c 20 |h....Oct|ober 1, |
|000002a0| 31 39 38 39 0d 23 09 09 | 09 54 45 43 6f 6d 6d 6f |1989.#..|.TECommo|
|000002b0| 6e 2e 68 09 09 09 09 4f | 63 74 6f 62 65 72 20 31 |n.h....O|ctober 1|
|000002c0| 2c 20 31 39 38 39 0d 23 | 09 09 09 54 45 53 61 6d |, 1989.#|...TESam|
|000002d0| 70 6c 65 2e 68 09 09 09 | 09 4f 63 74 6f 62 65 72 |ple.h...|.October|
|000002e0| 20 31 2c 20 31 39 38 39 | 0d 23 09 09 09 54 45 44 | 1, 1989|.#...TED|
|000002f0| 6f 63 75 6d 65 6e 74 2e | 68 09 09 09 4f 63 74 6f |ocument.|h...Octo|
|00000300| 62 65 72 20 31 2c 20 31 | 39 38 39 0d 23 09 09 09 |ber 1, 1|989.#...|
|00000310| 54 41 70 70 6c 69 63 61 | 74 69 6f 6e 2e 63 70 09 |TApplica|tion.cp.|
|00000320| 09 09 4f 63 74 6f 62 65 | 72 20 31 2c 20 31 39 38 |..Octobe|r 1, 198|
|00000330| 39 0d 23 09 09 09 54 44 | 6f 63 75 6d 65 6e 74 2e |9.#...TD|ocument.|
|00000340| 63 70 09 09 09 4f 63 74 | 6f 62 65 72 20 31 2c 20 |cp...Oct|ober 1, |
|00000350| 31 39 38 39 0d 23 09 09 | 09 54 45 53 61 6d 70 6c |1989.#..|.TESampl|
|00000360| 65 2e 63 70 09 09 09 09 | 4f 63 74 6f 62 65 72 20 |e.cp....|October |
|00000370| 31 2c 20 31 39 38 39 0d | 23 09 09 09 54 45 44 6f |1, 1989.|#...TEDo|
|00000380| 63 75 6d 65 6e 74 2e 63 | 70 09 09 09 4f 63 74 6f |cument.c|p...Octo|
|00000390| 62 65 72 20 31 2c 20 31 | 39 38 39 0d 23 09 09 09 |ber 1, 1|989.#...|
|000003a0| 54 45 53 61 6d 70 6c 65 | 47 6c 75 65 2e 61 09 09 |TESample|Glue.a..|
|000003b0| 09 4f 63 74 6f 62 65 72 | 20 31 2c 20 31 39 38 39 |.October| 1, 1989|
|000003c0| 0d 23 09 09 09 54 41 70 | 70 6c 69 63 61 74 69 6f |.#...TAp|plicatio|
|000003d0| 6e 2e 72 09 09 09 4f 63 | 74 6f 62 65 72 20 31 2c |n.r...Oc|tober 1,|
|000003e0| 20 31 39 38 39 0d 23 09 | 09 09 54 45 53 61 6d 70 | 1989.#.|..TESamp|
|000003f0| 6c 65 2e 72 09 09 09 09 | 4f 63 74 6f 62 65 72 20 |le.r....|October |
|00000400| 31 2c 20 31 39 38 39 0d | 23 0d 23 09 43 50 6c 75 |1, 1989.|#.#.CPlu|
|00000410| 73 54 45 53 61 6d 70 6c | 65 20 69 73 20 61 6e 20 |sTESampl|e is an |
|00000420| 65 78 61 6d 70 6c 65 20 | 61 70 70 6c 69 63 61 74 |example |applicat|
|00000430| 69 6f 6e 20 74 68 61 74 | 20 64 65 6d 6f 6e 73 74 |ion that| demonst|
|00000440| 72 61 74 65 73 0d 23 09 | 68 6f 77 20 74 6f 20 69 |rates.#.|how to i|
|00000450| 6e 69 74 69 61 6c 69 7a | 65 20 74 68 65 20 63 6f |nitializ|e the co|
|00000460| 6d 6d 6f 6e 6c 79 20 75 | 73 65 64 20 74 6f 6f 6c |mmonly u|sed tool|
|00000470| 62 6f 78 20 6d 61 6e 61 | 67 65 72 73 2c 0d 23 09 |box mana|gers,.#.|
|00000480| 6f 70 65 72 61 74 65 20 | 73 75 63 63 65 73 73 66 |operate |successf|
|00000490| 75 6c 6c 79 20 75 6e 64 | 65 72 20 4d 75 6c 74 69 |ully und|er Multi|
|000004a0| 46 69 6e 64 65 72 2c 20 | 68 61 6e 64 6c 65 20 64 |Finder, |handle d|
|000004b0| 65 73 6b 0d 23 09 61 63 | 63 65 73 73 6f 72 69 65 |esk.#.ac|cessorie|
|000004c0| 73 20 61 6e 64 20 63 72 | 65 61 74 65 2c 20 67 72 |s and cr|eate, gr|
|000004d0| 6f 77 2c 20 61 6e 64 20 | 7a 6f 6f 6d 20 77 69 6e |ow, and |zoom win|
|000004e0| 64 6f 77 73 2e 20 54 68 | 65 0d 23 09 66 75 6e 64 |dows. Th|e.#.fund|
|000004f0| 61 6d 65 6e 74 61 6c 20 | 54 65 78 74 45 64 69 74 |amental |TextEdit|
|00000500| 20 74 6f 6f 6c 62 6f 78 | 20 63 61 6c 6c 73 20 61 | toolbox| calls a|
|00000510| 6e 64 20 54 65 78 74 45 | 64 69 74 20 61 75 74 6f |nd TextE|dit auto|
|00000520| 73 63 72 6f 6c 6c 0d 23 | 09 61 72 65 20 64 65 6d |scroll.#|.are dem|
|00000530| 6f 6e 73 74 72 61 74 65 | 64 2e 20 49 74 20 61 6c |onstrate|d. It al|
|00000540| 73 6f 20 73 68 6f 77 73 | 20 68 6f 77 20 74 6f 20 |so shows| how to |
|00000550| 63 72 65 61 74 65 20 61 | 6e 64 20 6d 61 69 6e 74 |create a|nd maint|
|00000560| 61 69 6e 0d 23 09 73 63 | 72 6f 6c 6c 62 61 72 20 |ain.#.sc|rollbar |
|00000570| 63 6f 6e 74 72 6f 6c 73 | 2e 20 0d 23 0d 23 09 54 |controls|. .#.#.T|
|00000580| 68 69 73 20 76 65 72 73 | 69 6f 6e 20 6f 66 20 54 |his vers|ion of T|
|00000590| 45 53 61 6d 70 6c 65 20 | 68 61 73 20 62 65 65 6e |ESample |has been|
|000005a0| 20 73 75 62 73 74 61 6e | 74 69 61 6c 6c 79 20 72 | substan|tially r|
|000005b0| 65 77 6f 72 6b 65 64 20 | 69 6e 0d 23 09 43 2b 2b |eworked |in.#.C++|
|000005c0| 20 74 6f 20 73 68 6f 77 | 20 68 6f 77 20 61 20 22 | to show| how a "|
|000005d0| 74 79 70 69 63 61 6c 22 | 20 6f 62 6a 65 63 74 20 |typical"| object |
|000005e0| 6f 72 69 65 6e 74 65 64 | 20 70 72 6f 67 72 61 6d |oriented| program|
|000005f0| 20 63 6f 75 6c 64 0d 23 | 09 62 65 20 77 72 69 74 | could.#|.be writ|
|00000600| 74 65 6e 2e 20 54 6f 20 | 74 68 69 73 20 65 6e 64 |ten. To |this end|
|00000610| 2c 20 77 68 61 74 20 77 | 61 73 20 6f 6e 63 65 20 |, what w|as once |
|00000620| 61 20 73 69 6e 67 6c 65 | 20 73 6f 75 72 63 65 20 |a single| source |
|00000630| 63 6f 64 65 0d 23 09 66 | 69 6c 65 20 68 61 73 20 |code.#.f|ile has |
|00000640| 62 65 65 6e 20 72 65 73 | 74 72 75 63 74 75 72 65 |been res|tructure|
|00000650| 64 20 69 6e 74 6f 20 61 | 20 73 65 74 20 6f 66 20 |d into a| set of |
|00000660| 63 6c 61 73 73 65 73 20 | 77 68 69 63 68 0d 23 09 |classes |which.#.|
|00000670| 64 65 6d 6f 6e 73 74 72 | 61 74 65 20 74 68 65 20 |demonstr|ate the |
|00000680| 61 64 76 61 6e 74 61 67 | 65 73 20 6f 66 20 6f 62 |advantag|es of ob|
|00000690| 6a 65 63 74 2d 6f 72 69 | 65 6e 74 65 64 20 70 72 |ject-ori|ented pr|
|000006a0| 6f 67 72 61 6d 6d 69 6e | 67 2e 0d 23 0d 2d 2d 2d |ogrammin|g..#.---|
|000006b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000006c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000006d0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000006e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000006f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2a 2f 0d 0d 23 |--------|---*/..#|
|00000700| 69 66 6e 64 65 66 20 5f | 5f 54 45 43 4f 4d 4d 4f |ifndef _|_TECOMMO|
|00000710| 4e 5f 5f 0d 23 64 65 66 | 69 6e 65 20 5f 5f 54 45 |N__.#def|ine __TE|
|00000720| 43 4f 4d 4d 4f 4e 5f 5f | 0d 0d 2f 2a 0d 09 54 68 |COMMON__|../*..Th|
|00000730| 65 73 65 20 64 65 66 69 | 6e 69 74 69 6f 6e 73 20 |ese defi|nitions |
|00000740| 61 72 65 20 73 68 61 72 | 65 64 20 62 79 20 52 65 |are shar|ed by Re|
|00000750| 7a 20 61 6e 64 20 43 2b | 2b 2e 20 57 65 20 75 73 |z and C+|+. We us|
|00000760| 65 20 23 64 65 66 69 6e | 65 20 73 74 61 74 65 6d |e #defin|e statem|
|00000770| 65 6e 74 73 0d 09 69 6e | 73 74 65 61 64 20 6f 66 |ents..in|stead of|
|00000780| 20 63 6f 6e 73 74 61 6e | 74 73 20 69 6e 20 74 68 | constan|ts in th|
|00000790| 69 73 20 66 69 6c 65 20 | 62 65 63 61 75 73 65 20 |is file |because |
|000007a0| 52 65 7a 20 64 6f 65 73 | 6e 27 74 20 73 75 70 70 |Rez does|n't supp|
|000007b0| 6f 72 74 20 63 6f 6e 73 | 74 61 6e 74 73 2c 0d 09 |ort cons|tants,..|
|000007c0| 61 6e 64 20 73 69 6e 63 | 65 20 74 68 65 20 33 2e |and sinc|e the 3.|
|000007d0| 30 20 76 65 72 73 69 6f | 6e 20 6f 66 20 52 65 7a |0 versio|n of Rez|
|000007e0| 20 64 6f 65 73 6e 27 74 | 20 6c 69 6b 65 20 74 68 | doesn't| like th|
|000007f0| 65 20 43 2b 2b 20 63 6f | 6d 6d 65 6e 74 73 2c 20 |e C++ co|mments, |
|00000800| 77 65 20 75 73 65 0d 09 | 43 20 73 74 79 6c 65 20 |we use..|C style |
|00000810| 63 6f 6d 6d 65 6e 74 73 | 20 69 6e 20 74 68 69 73 |comments| in this|
|00000820| 20 66 69 6c 65 20 61 73 | 20 77 65 6c 6c 2e 0d 20 | file as| well.. |
|00000830| 2a 2f 0d 0d 2f 2a 09 44 | 65 74 65 72 6d 69 6e 69 |*/../*.D|etermini|
|00000840| 6e 67 20 61 6e 20 61 70 | 70 6c 69 63 61 74 69 6f |ng an ap|plicatio|
|00000850| 6e 27 73 20 6d 69 6e 69 | 6d 75 6d 20 73 69 7a 65 |n's mini|mum size|
|00000860| 20 74 6f 20 72 65 71 75 | 65 73 74 20 66 72 6f 6d | to requ|est from|
|00000870| 20 4d 75 6c 74 69 46 69 | 6e 64 65 72 20 64 65 70 | MultiFi|nder dep|
|00000880| 65 6e 64 73 0d 09 6f 6e | 20 6d 61 6e 79 20 74 68 |ends..on| many th|
|00000890| 69 6e 67 73 2c 20 65 61 | 63 68 20 6f 66 20 77 68 |ings, ea|ch of wh|
|000008a0| 69 63 68 20 63 61 6e 20 | 62 65 20 75 6e 69 71 75 |ich can |be uniqu|
|000008b0| 65 20 74 6f 20 61 6e 20 | 61 70 70 6c 69 63 61 74 |e to an |applicat|
|000008c0| 69 6f 6e 27 73 20 66 75 | 6e 63 74 69 6f 6e 2c 0d |ion's fu|nction,.|
|000008d0| 09 74 68 65 20 61 6e 74 | 69 63 69 70 61 74 65 64 |.the ant|icipated|
|000008e0| 20 65 6e 76 69 72 6f 6e | 6d 65 6e 74 2c 20 74 68 | environ|ment, th|
|000008f0| 65 20 64 65 76 65 6c 6f | 70 65 72 27 73 20 61 74 |e develo|per's at|
|00000900| 74 69 74 75 64 65 20 6f | 66 20 77 68 61 74 20 63 |titude o|f what c|
|00000910| 6f 6e 73 74 69 74 75 74 | 65 73 0d 09 72 65 61 73 |onstitut|es..reas|
|00000920| 6f 6e 61 62 6c 65 20 66 | 75 6e 63 74 69 6f 6e 61 |onable f|unctiona|
|00000930| 6c 69 74 79 20 61 6e 64 | 20 70 65 72 66 6f 72 6d |lity and| perform|
|00000940| 61 6e 63 65 2c 20 65 74 | 63 2e 20 48 65 72 65 20 |ance, et|c. Here |
|00000950| 69 73 20 61 20 6c 69 73 | 74 20 6f 66 20 73 6f 6d |is a lis|t of som|
|00000960| 65 20 74 68 69 6e 67 73 | 20 74 6f 0d 09 63 6f 6e |e things| to..con|
|00000970| 73 69 64 65 72 20 77 68 | 65 6e 20 64 65 74 65 72 |sider wh|en deter|
|00000980| 6d 69 6e 69 6e 67 20 74 | 68 65 20 6d 69 6e 69 6d |mining t|he minim|
|00000990| 75 6d 20 73 69 7a 65 20 | 28 61 6e 64 20 70 72 65 |um size |(and pre|
|000009a0| 66 65 72 72 65 64 20 73 | 69 7a 65 29 20 66 6f 72 |ferred s|ize) for|
|000009b0| 20 79 6f 75 72 0d 09 61 | 70 70 6c 69 63 61 74 69 | your..a|pplicati|
|000009c0| 6f 6e 2e 20 54 68 65 20 | 6c 69 73 74 20 69 73 20 |on. The |list is |
|000009d0| 70 72 65 74 74 79 20 6d | 75 63 68 20 69 6e 20 6f |pretty m|uch in o|
|000009e0| 72 64 65 72 20 6f 66 20 | 69 6d 70 6f 72 74 61 6e |rder of |importan|
|000009f0| 63 65 2c 20 62 75 74 20 | 62 79 20 6e 6f 20 6d 65 |ce, but |by no me|
|00000a00| 61 6e 73 0d 09 63 6f 6d | 70 6c 65 74 65 2e 0d 09 |ans..com|plete...|
|00000a10| 0d 09 31 2e 09 57 68 61 | 74 20 69 73 20 74 68 65 |..1..Wha|t is the|
|00000a20| 20 6d 69 6e 69 6d 75 6d | 20 73 69 7a 65 20 6e 65 | minimum| size ne|
|00000a30| 65 64 65 64 20 74 6f 20 | 67 69 76 65 20 61 6c 6d |eded to |give alm|
|00000a40| 6f 73 74 20 31 30 30 20 | 70 65 72 63 65 6e 74 20 |ost 100 |percent |
|00000a50| 61 73 73 75 72 61 6e 63 | 65 0d 09 09 74 68 61 74 |assuranc|e...that|
|00000a60| 20 74 68 65 20 61 70 70 | 6c 69 63 61 74 69 6f 6e | the app|lication|
|00000a70| 20 77 6f 6e 27 74 20 63 | 72 61 73 68 20 62 65 63 | won't c|rash bec|
|00000a80| 61 75 73 65 20 69 74 20 | 72 61 6e 20 6f 75 74 20 |ause it |ran out |
|00000a90| 6f 66 20 6d 65 6d 6f 72 | 79 3f 20 54 68 69 73 0d |of memor|y? This.|
|00000aa0| 09 09 69 6e 63 6c 75 64 | 65 73 20 6e 6f 74 20 6f |..includ|es not o|
|00000ab0| 6e 6c 79 20 74 68 69 6e | 67 73 20 74 68 61 74 20 |nly thin|gs that |
|00000ac0| 79 6f 75 20 64 6f 20 68 | 61 76 65 20 64 69 72 65 |you do h|ave dire|
|00000ad0| 63 74 20 63 6f 6e 74 72 | 6f 6c 20 6f 76 65 72 20 |ct contr|ol over |
|00000ae0| 73 75 63 68 20 61 73 0d | 09 09 63 68 65 63 6b 69 |such as.|..checki|
|00000af0| 6e 67 20 66 6f 72 20 4e | 49 4c 20 68 61 6e 64 6c |ng for N|IL handl|
|00000b00| 65 73 20 61 6e 64 20 70 | 6f 69 6e 74 65 72 73 2c |es and p|ointers,|
|00000b10| 20 62 75 74 20 61 6c 73 | 6f 20 74 68 69 6e 67 73 | but als|o things|
|00000b20| 20 74 68 61 74 20 73 6f | 6d 65 0d 09 09 66 65 65 | that so|me...fee|
|00000b30| 6c 20 61 72 65 20 6e 6f | 74 20 73 6f 20 6d 75 63 |l are no|t so muc|
|00000b40| 68 20 75 6e 64 65 72 20 | 74 68 65 69 72 20 63 6f |h under |their co|
|00000b50| 6e 74 72 6f 6c 20 73 75 | 63 68 20 61 73 20 51 75 |ntrol su|ch as Qu|
|00000b60| 69 63 6b 44 72 61 77 20 | 61 6e 64 20 74 68 65 0d |ickDraw |and the.|
|00000b70| 09 09 53 65 67 6d 65 6e | 74 20 4c 6f 61 64 65 72 |..Segmen|t Loader|
|00000b80| 2e 0d 09 09 0d 09 32 2e | 09 57 68 61 74 20 6b 69 |......2.|.What ki|
|00000b90| 6e 64 20 6f 66 20 70 65 | 72 66 6f 72 6d 61 6e 63 |nd of pe|rformanc|
|00000ba0| 65 20 63 61 6e 20 61 20 | 75 73 65 72 20 65 78 70 |e can a |user exp|
|00000bb0| 65 63 74 20 66 72 6f 6d | 20 74 68 65 20 61 70 70 |ect from| the app|
|00000bc0| 6c 69 63 61 74 69 6f 6e | 20 77 68 65 6e 0d 09 09 |lication| when...|
|00000bd0| 69 74 20 69 73 20 72 75 | 6e 6e 69 6e 67 20 69 6e |it is ru|nning in|
|00000be0| 20 74 68 65 20 6d 69 6e | 69 6d 75 6d 20 6d 65 6d | the min|imum mem|
|00000bf0| 6f 72 79 20 63 6f 6e 66 | 69 67 75 72 61 74 69 6f |ory conf|iguratio|
|00000c00| 6e 3f 20 50 65 72 66 6f | 72 6d 61 6e 63 65 20 69 |n? Perfo|rmance i|
|00000c10| 6e 63 6c 75 64 65 73 0d | 09 09 6e 6f 74 20 6f 6e |ncludes.|..not on|
|00000c20| 6c 79 20 73 70 65 65 64 | 20 69 6e 20 68 61 6e 64 |ly speed| in hand|
|00000c30| 6c 69 6e 67 20 64 61 74 | 61 2c 20 62 75 74 20 61 |ling dat|a, but a|
|00000c40| 6c 73 6f 20 74 68 69 6e | 67 73 20 6c 69 6b 65 20 |lso thin|gs like |
|00000c50| 68 6f 77 20 6d 61 6e 79 | 20 64 6f 63 75 6d 65 6e |how many| documen|
|00000c60| 74 73 0d 09 09 63 61 6e | 20 62 65 20 6f 70 65 6e |ts...can| be open|
|00000c70| 65 64 2c 20 65 74 63 2e | 0d 09 09 0d 09 33 2e 09 |ed, etc.|.....3..|
|00000c80| 57 68 61 74 20 61 72 65 | 20 74 68 65 20 74 79 70 |What are| the typ|
|00000c90| 69 63 61 6c 20 73 69 7a | 65 73 20 6f 66 20 73 63 |ical siz|es of sc|
|00000ca0| 72 61 70 73 20 74 68 61 | 74 20 61 20 75 73 65 72 |raps tha|t a user|
|00000cb0| 20 6d 69 67 68 74 20 77 | 69 73 68 20 74 6f 20 77 | might w|ish to w|
|00000cc0| 6f 72 6b 0d 09 09 77 69 | 74 68 20 77 68 65 6e 20 |ork...wi|th when |
|00000cd0| 6c 61 75 63 68 69 6e 67 | 20 6f 72 20 73 77 69 74 |lauching| or swit|
|00000ce0| 63 68 69 6e 67 20 74 6f | 20 79 6f 75 72 20 61 70 |ching to| your ap|
|00000cf0| 70 6c 69 63 61 74 69 6f | 6e 3f 20 49 66 20 74 68 |plicatio|n? If th|
|00000d00| 65 20 61 6d 6f 75 6e 74 | 0d 09 09 6f 66 20 6d 65 |e amount|...of me|
|00000d10| 6d 6f 72 79 20 69 73 20 | 74 6f 6f 20 73 6d 61 6c |mory is |too smal|
|00000d20| 6c 2c 20 74 68 65 20 73 | 63 72 61 70 20 77 69 6c |l, the s|crap wil|
|00000d30| 6c 20 62 65 20 70 75 72 | 67 65 64 20 66 72 6f 6d |l be pur|ged from|
|00000d40| 20 6d 65 6d 6f 72 79 2e | 20 54 68 69 73 0d 09 09 | memory.| This...|
|00000d50| 63 61 6e 20 62 65 20 71 | 75 69 74 65 20 66 72 75 |can be q|uite fru|
|00000d60| 73 74 72 61 74 69 6e 67 | 20 74 6f 20 74 68 65 20 |strating| to the |
|00000d70| 75 73 65 72 2e 0d 09 09 | 0d 09 34 2e 09 54 68 65 |user....|..4..The|
|00000d80| 20 70 72 65 76 69 6f 75 | 73 20 69 74 65 6d 73 20 | previou|s items |
|00000d90| 68 61 76 65 20 63 6f 6e | 63 65 6e 74 72 61 74 65 |have con|centrate|
|00000da0| 64 20 6f 6e 20 74 6f 70 | 69 63 73 20 74 68 61 74 |d on top|ics that|
|00000db0| 20 74 65 6e 64 20 74 6f | 20 63 61 75 73 65 20 61 | tend to| cause a|
|00000dc0| 6e 0d 09 09 69 6e 63 72 | 65 61 73 65 20 69 6e 20 |n...incr|ease in |
|00000dd0| 74 68 65 20 6d 69 6e 69 | 6d 75 6d 20 73 69 7a 65 |the mini|mum size|
|00000de0| 20 74 6f 20 72 65 71 75 | 65 73 74 20 66 72 6f 6d | to requ|est from|
|00000df0| 20 4d 75 6c 74 69 46 69 | 6e 64 65 72 2e 20 4f 6e | MultiFi|nder. On|
|00000e00| 20 74 68 65 20 66 6c 69 | 70 0d 09 09 73 69 64 65 | the fli|p...side|
|00000e10| 2c 20 68 6f 77 65 76 65 | 72 2c 20 73 68 6f 75 6c |, howeve|r, shoul|
|00000e20| 64 20 62 65 20 74 68 65 | 20 63 6f 6e 73 69 64 65 |d be the| conside|
|00000e30| 72 61 74 69 6f 6e 20 6f | 66 20 77 68 61 74 20 65 |ration o|f what e|
|00000e40| 6e 76 69 72 6f 6e 6d 65 | 6e 74 73 20 74 68 65 0d |nvironme|nts the.|
|00000e50| 09 09 61 70 70 6c 69 63 | 61 74 69 6f 6e 20 6d 61 |..applic|ation ma|
|00000e60| 79 20 62 65 20 72 75 6e | 6e 69 6e 67 20 69 6e 2e |y be run|ning in.|
|00000e70| 20 54 68 65 72 65 20 6d | 61 79 20 62 65 20 61 20 | There m|ay be a |
|00000e80| 68 69 67 68 20 70 72 6f | 62 61 62 69 6c 69 74 79 |high pro|bability|
|00000e90| 20 74 68 61 74 0d 09 09 | 6d 61 6e 79 20 75 73 65 | that...|many use|
|00000ea0| 72 73 20 77 69 74 68 20 | 72 65 6c 61 74 69 76 65 |rs with |relative|
|00000eb0| 6c 79 20 73 6d 61 6c 6c | 20 6d 65 6d 6f 72 79 20 |ly small| memory |
|00000ec0| 63 6f 6e 66 69 67 75 72 | 61 74 69 6f 6e 73 20 77 |configur|ations w|
|00000ed0| 69 6c 6c 20 77 61 6e 74 | 20 74 6f 0d 09 09 61 76 |ill want| to...av|
|00000ee0| 61 69 6c 20 74 68 65 6d | 73 65 6c 76 65 73 20 6f |ail them|selves o|
|00000ef0| 66 20 79 6f 75 72 20 61 | 70 70 6c 69 63 61 74 69 |f your a|pplicati|
|00000f00| 6f 6e 2e 20 4f 72 2c 20 | 6d 61 6e 79 20 75 73 65 |on. Or, |many use|
|00000f10| 72 73 20 6d 69 67 68 74 | 20 77 61 6e 74 20 74 6f |rs might| want to|
|00000f20| 20 75 73 65 20 69 74 0d | 09 09 77 68 69 6c 65 20 | use it.|..while |
|00000f30| 73 65 76 65 72 61 6c 20 | 6f 74 68 65 72 2c 20 70 |several |other, p|
|00000f40| 6f 73 73 69 62 6c 79 20 | 72 65 6c 61 74 65 64 2f |ossibly |related/|
|00000f50| 63 6f 6d 70 6c 65 6d 65 | 6e 74 61 72 79 20 61 70 |compleme|ntary ap|
|00000f60| 70 6c 69 63 61 74 69 6f | 6e 73 20 61 72 65 0d 09 |plicatio|ns are..|
|00000f70| 09 72 75 6e 6e 69 6e 67 | 2e 20 49 66 20 74 68 61 |.running|. If tha|
|00000f80| 74 20 69 73 20 74 68 65 | 20 63 61 73 65 2c 20 69 |t is the| case, i|
|00000f90| 74 20 77 6f 75 6c 64 20 | 62 65 20 68 65 6c 70 66 |t would |be helpf|
|00000fa0| 75 6c 20 74 6f 20 68 61 | 76 65 20 61 20 66 61 69 |ul to ha|ve a fai|
|00000fb0| 72 6c 79 0d 09 09 73 6d | 61 6c 6c 20 6d 69 6e 69 |rly...sm|all mini|
|00000fc0| 6d 75 6d 20 73 69 7a 65 | 2e 0d 09 0d 09 57 68 61 |mum size|.....Wha|
|00000fd0| 74 20 77 65 20 64 69 64 | 20 66 6f 72 20 43 50 6c |t we did| for CPl|
|00000fe0| 75 73 54 45 53 61 6d 70 | 6c 65 3a 0d 09 0d 09 09 |usTESamp|le:.....|
|00000ff0| 57 65 20 64 65 74 65 72 | 6d 69 6e 65 64 20 74 68 |We deter|mined th|
|00001000| 65 20 73 6d 61 6c 6c 65 | 73 74 20 68 65 61 70 20 |e smalle|st heap |
|00001010| 73 69 7a 65 20 74 68 61 | 74 20 43 50 6c 75 73 54 |size tha|t CPlusT|
|00001020| 45 53 61 6d 70 6c 65 20 | 63 6f 75 6c 64 20 68 61 |ESample |could ha|
|00001030| 76 65 20 61 6e 64 0d 09 | 09 73 74 69 6c 6c 20 72 |ve and..|.still r|
|00001040| 75 6e 20 28 32 34 4b 29 | 2e 20 46 6f 72 20 74 68 |un (24K)|. For th|
|00001050| 65 20 70 72 65 66 65 72 | 72 65 64 20 73 69 7a 65 |e prefer|red size|
|00001060| 20 77 65 20 61 64 64 65 | 64 20 65 6e 6f 75 67 68 | we adde|d enough|
|00001070| 20 73 70 61 63 65 20 74 | 6f 20 70 65 72 6d 69 74 | space t|o permit|
|00001080| 3a 0d 09 09 09 61 2e 20 | 61 20 6d 61 78 69 6d 75 |:....a. |a maximu|
|00001090| 6d 20 73 69 7a 65 20 54 | 65 78 74 45 64 69 74 20 |m size T|extEdit |
|000010a0| 74 65 78 74 20 68 61 6e | 64 6c 65 20 28 33 32 30 |text han|dle (320|
|000010b0| 30 30 20 63 68 61 72 61 | 63 74 65 72 73 29 0d 09 |00 chara|cters)..|
|000010c0| 09 09 62 2e 20 61 20 6d | 61 78 69 6d 75 6d 20 75 |..b. a m|aximum u|
|000010d0| 73 61 62 6c 65 20 54 65 | 78 74 45 64 69 74 20 73 |sable Te|xtEdit s|
|000010e0| 63 72 61 70 20 28 33 32 | 30 30 30 20 63 68 61 72 |crap (32|000 char|
|000010f0| 61 63 74 65 72 73 29 0d | 09 09 09 62 2e 20 61 20 |acters).|...b. a |
|00001100| 6d 61 78 69 6d 75 6d 20 | 73 63 72 61 70 20 61 73 |maximum |scrap as|
|00001110| 20 61 20 72 65 73 75 6c | 74 20 6f 66 20 43 6f 70 | a resul|t of Cop|
|00001120| 79 20 28 33 32 30 30 30 | 20 63 68 61 72 61 63 74 |y (32000| charact|
|00001130| 65 72 73 29 0d 09 09 09 | 64 2e 20 61 20 6c 69 74 |ers)....|d. a lit|
|00001140| 74 6c 65 20 70 65 72 66 | 6f 72 6d 61 6e 63 65 20 |tle perf|ormance |
|00001150| 63 75 73 68 69 6f 6e 20 | 28 73 65 65 20 32 2c 20 |cushion |(see 2, |
|00001160| 61 62 6f 76 65 29 20 28 | 31 30 4b 29 0d 09 09 52 |above) (|10K)...R|
|00001170| 65 73 75 6c 74 3a 20 31 | 32 34 4b 20 66 6f 72 20 |esult: 1|24K for |
|00001180| 70 72 65 66 65 72 72 65 | 64 20 73 69 7a 65 0d 09 |preferre|d size..|
|00001190| 09 0d 09 09 46 6f 72 20 | 74 68 65 20 6d 69 6e 69 |....For |the mini|
|000011a0| 6d 75 6d 20 73 69 7a 65 | 20 77 65 20 74 6f 6f 6b |mum size| we took|
|000011b0| 20 74 68 65 20 32 32 4b | 20 61 6e 64 20 74 68 65 | the 22K| and the|
|000011c0| 6e 20 73 63 61 6c 65 64 | 20 64 6f 77 6e 20 6f 75 |n scaled| down ou|
|000011d0| 72 20 72 65 71 75 69 72 | 65 6d 65 6e 74 73 0d 09 |r requir|ements..|
|000011e0| 09 66 6f 72 20 61 2c 62 | 2c 20 61 6e 64 20 63 20 |.for a,b|, and c |
|000011f0| 61 62 6f 76 65 2e 20 57 | 65 20 74 68 6f 75 67 68 |above. W|e though|
|00001200| 74 20 74 68 61 74 20 70 | 72 6f 76 69 64 69 6e 67 |t that p|roviding|
|00001210| 20 31 36 4b 20 6d 6f 72 | 65 20 77 6f 75 6c 64 20 | 16K mor|e would |
|00001220| 62 65 20 6c 65 61 6e 0d | 09 09 61 6e 64 20 6d 65 |be lean.|..and me|
|00001230| 61 6e 20 28 73 65 65 20 | 34 2c 20 61 62 6f 76 65 |an (see |4, above|
|00001240| 29 2e 0d 09 09 52 65 73 | 75 6c 74 3a 20 34 30 4b |)....Res|ult: 40K|
|00001250| 20 66 6f 72 20 6d 69 6e | 69 6d 75 6d 20 73 69 7a | for min|imum siz|
|00001260| 65 0d 2a 2f 0d 20 0d 23 | 64 65 66 69 6e 65 20 6b |e.*/. .#|define k|
|00001270| 50 72 65 66 53 69 7a 65 | 09 09 09 09 31 32 34 0d |PrefSize|....124.|
|00001280| 23 64 65 66 69 6e 65 20 | 6b 4d 69 6e 53 69 7a 65 |#define |kMinSize|
|00001290| 09 09 09 09 34 30 0d 09 | 0d 2f 2a 20 6b 4d 69 6e |....40..|./* kMin|
|000012a0| 48 65 61 70 20 2d 20 54 | 68 69 73 20 69 73 20 74 |Heap - T|his is t|
|000012b0| 68 65 20 6d 69 6e 69 6d | 75 6d 20 72 65 73 75 6c |he minim|um resul|
|000012c0| 74 20 66 72 6f 6d 20 74 | 68 65 20 66 6f 6c 6c 6f |t from t|he follo|
|000012d0| 77 69 6e 67 0d 09 20 65 | 71 75 61 74 69 6f 6e 3a |wing.. e|quation:|
|000012e0| 0d 09 09 09 0d 09 09 09 | 4f 52 44 28 47 65 74 41 |........|ORD(GetA|
|000012f0| 70 70 6c 4c 69 6d 69 74 | 29 20 2d 20 4f 52 44 28 |pplLimit|) - ORD(|
|00001300| 41 70 70 6c 69 63 5a 6f | 6e 65 29 0d 09 09 09 0d |ApplicZo|ne).....|
|00001310| 09 20 66 6f 72 20 74 68 | 65 20 61 70 70 6c 69 63 |. for th|e applic|
|00001320| 61 74 69 6f 6e 20 74 6f | 20 72 75 6e 2e 20 49 74 |ation to| run. It|
|00001330| 20 77 69 6c 6c 20 69 6e | 73 75 72 65 20 74 68 61 | will in|sure tha|
|00001340| 74 20 65 6e 6f 75 67 68 | 20 6d 65 6d 6f 72 79 20 |t enough| memory |
|00001350| 77 69 6c 6c 0d 09 20 62 | 65 20 61 72 6f 75 6e 64 |will.. b|e around|
|00001360| 20 66 6f 72 20 72 65 61 | 73 6f 6e 61 62 6c 65 2d | for rea|sonable-|
|00001370| 73 69 7a 65 64 20 73 63 | 72 61 70 73 2c 20 46 4b |sized sc|raps, FK|
|00001380| 45 59 73 2c 20 65 74 63 | 2e 20 74 6f 20 65 78 69 |EYs, etc|. to exi|
|00001390| 73 74 20 77 69 74 68 20 | 74 68 65 0d 09 20 61 70 |st with |the.. ap|
|000013a0| 70 6c 69 63 61 74 69 6f | 6e 2c 20 61 6e 64 20 73 |plicatio|n, and s|
|000013b0| 74 69 6c 6c 20 67 69 76 | 65 20 74 68 65 20 61 70 |till giv|e the ap|
|000013c0| 70 6c 69 63 61 74 69 6f | 6e 20 73 6f 6d 65 20 27 |plicatio|n some '|
|000013d0| 62 72 65 61 74 68 69 6e | 67 20 72 6f 6f 6d 27 2e |breathin|g room'.|
|000013e0| 0d 09 20 54 6f 20 64 65 | 72 69 76 65 20 74 68 69 |.. To de|rive thi|
|000013f0| 73 20 6e 75 6d 62 65 72 | 2c 20 77 65 20 72 61 6e |s number|, we ran|
|00001400| 20 75 6e 64 65 72 20 61 | 20 4d 75 6c 74 69 46 69 | under a| MultiFi|
|00001410| 6e 64 65 72 20 70 61 72 | 74 69 74 69 6f 6e 20 74 |nder par|tition t|
|00001420| 68 61 74 20 77 61 73 0d | 09 20 6f 75 72 20 72 65 |hat was.|. our re|
|00001430| 71 75 65 73 74 65 64 20 | 6d 69 6e 69 6d 75 6d 20 |quested |minimum |
|00001440| 73 69 7a 65 2c 20 61 73 | 20 67 69 76 65 6e 20 69 |size, as| given i|
|00001450| 6e 20 74 68 65 20 27 53 | 49 5a 45 27 20 72 65 73 |n the 'S|IZE' res|
|00001460| 6f 75 72 63 65 2e 20 2a | 2f 0d 09 20 0d 23 64 65 |ource. *|/.. .#de|
|00001470| 66 69 6e 65 09 6b 4d 69 | 6e 48 65 61 70 09 09 09 |fine.kMi|nHeap...|
|00001480| 09 20 28 33 34 20 2a 20 | 31 30 32 34 29 0d 09 0d |. (34 * |1024)...|
|00001490| 2f 2a 20 6b 4d 69 6e 53 | 70 61 63 65 20 2d 20 54 |/* kMinS|pace - T|
|000014a0| 68 69 73 20 69 73 20 74 | 68 65 20 6d 69 6e 69 6d |his is t|he minim|
|000014b0| 75 6d 20 72 65 73 75 6c | 74 20 66 72 6f 6d 20 50 |um resul|t from P|
|000014c0| 75 72 67 65 53 70 61 63 | 65 2c 20 77 68 65 6e 20 |urgeSpac|e, when |
|000014d0| 63 61 6c 6c 65 64 0d 09 | 20 61 74 20 69 6e 69 74 |called..| at init|
|000014e0| 69 61 6c 69 7a 61 74 69 | 6f 6e 20 74 69 6d 65 2c |ializati|on time,|
|000014f0| 20 66 6f 72 20 74 68 65 | 20 61 70 70 6c 69 63 61 | for the| applica|
|00001500| 74 69 6f 6e 20 74 6f 20 | 72 75 6e 2e 20 54 68 69 |tion to |run. Thi|
|00001510| 73 20 6e 75 6d 62 65 72 | 20 61 63 74 73 0d 09 20 |s number| acts.. |
|00001520| 61 73 20 61 20 64 6f 75 | 62 6c 65 2d 63 68 65 63 |as a dou|ble-chec|
|00001530| 6b 20 74 6f 20 69 6e 73 | 75 72 65 20 74 68 61 74 |k to ins|ure that|
|00001540| 20 74 68 65 72 65 20 72 | 65 61 6c 6c 79 20 69 73 | there r|eally is|
|00001550| 20 65 6e 6f 75 67 68 20 | 6d 65 6d 6f 72 79 20 66 | enough |memory f|
|00001560| 6f 72 20 74 68 65 0d 09 | 20 61 70 70 6c 69 63 61 |or the..| applica|
|00001570| 74 69 6f 6e 20 74 6f 20 | 72 75 6e 2c 20 69 6e 63 |tion to |run, inc|
|00001580| 6c 75 64 69 6e 67 20 77 | 68 61 74 20 68 61 73 20 |luding w|hat has |
|00001590| 62 65 65 6e 20 74 61 6b | 65 6e 20 75 70 20 61 6c |been tak|en up al|
|000015a0| 72 65 61 64 79 20 62 79 | 0d 09 20 70 72 65 2d 6c |ready by|.. pre-l|
|000015b0| 6f 61 64 65 64 20 72 65 | 73 6f 75 72 63 65 73 2c |oaded re|sources,|
|000015c0| 20 74 68 65 20 73 63 72 | 61 70 2c 20 63 6f 64 65 | the scr|ap, code|
|000015d0| 2c 20 61 6e 64 20 6f 74 | 68 65 72 20 73 75 6e 64 |, and ot|her sund|
|000015e0| 72 79 20 6d 65 6d 6f 72 | 79 20 62 6c 6f 63 6b 73 |ry memor|y blocks|
|000015f0| 2e 20 2a 2f 0d 09 20 0d | 23 64 65 66 69 6e 65 09 |. */.. .|#define.|
|00001600| 6b 4d 69 6e 53 70 61 63 | 65 09 09 09 09 28 32 30 |kMinSpac|e....(20|
|00001610| 20 2a 20 31 30 32 34 29 | 0d 0d 2f 2a 20 69 64 20 | * 1024)|../* id |
|00001620| 6f 66 20 6f 75 72 20 53 | 54 52 23 20 66 6f 72 20 |of our S|TR# for |
|00001630| 65 72 72 6f 72 20 73 74 | 72 69 6e 67 73 20 2a 2f |error st|rings */|
|00001640| 0d 23 64 65 66 69 6e 65 | 20 6b 54 45 44 6f 63 45 |.#define| kTEDocE|
|00001650| 72 72 53 74 72 69 6e 67 | 73 09 20 31 32 39 0d 0d |rrString|s. 129..|
|00001660| 2f 2a 20 54 68 65 20 66 | 6f 6c 6c 6f 77 69 6e 67 |/* The f|ollowing|
|00001670| 20 61 72 65 20 69 6e 64 | 69 63 69 65 73 20 69 6e | are ind|icies in|
|00001680| 74 6f 20 53 54 52 23 20 | 72 65 73 6f 75 72 63 65 |to STR# |resource|
|00001690| 73 2e 20 2a 2f 0d 23 64 | 65 66 69 6e 65 09 65 4e |s. */.#d|efine.eN|
|000016a0| 6f 4d 65 6d 6f 72 79 09 | 09 09 09 31 0d 23 64 65 |oMemory.|...1.#de|
|000016b0| 66 69 6e 65 09 65 4e 6f | 53 70 61 63 65 43 75 74 |fine.eNo|SpaceCut|
|000016c0| 09 09 09 09 32 0d 23 64 | 65 66 69 6e 65 09 65 4e |....2.#d|efine.eN|
|000016d0| 6f 43 75 74 09 09 09 09 | 09 33 0d 23 64 65 66 69 |oCut....|.3.#defi|
|000016e0| 6e 65 09 65 4e 6f 43 6f | 70 79 09 09 09 09 09 34 |ne.eNoCo|py.....4|
|000016f0| 0d 23 64 65 66 69 6e 65 | 09 65 45 78 63 65 65 64 |.#define|.eExceed|
|00001700| 50 61 73 74 65 09 09 09 | 35 0d 23 64 65 66 69 6e |Paste...|5.#defin|
|00001710| 65 09 65 4e 6f 53 70 61 | 63 65 50 61 73 74 65 09 |e.eNoSpa|cePaste.|
|00001720| 09 09 36 0d 23 64 65 66 | 69 6e 65 09 65 4e 6f 57 |..6.#def|ine.eNoW|
|00001730| 69 6e 64 6f 77 09 09 09 | 09 37 0d 23 64 65 66 69 |indow...|.7.#defi|
|00001740| 6e 65 09 65 45 78 63 65 | 65 64 43 68 61 72 09 09 |ne.eExce|edChar..|
|00001750| 09 09 38 0d 23 64 65 66 | 69 6e 65 09 65 4e 6f 50 |..8.#def|ine.eNoP|
|00001760| 61 73 74 65 09 09 09 09 | 39 0d 0d 23 64 65 66 69 |aste....|9..#defi|
|00001770| 6e 65 09 72 4d 65 6e 75 | 42 61 72 09 31 32 38 09 |ne.rMenu|Bar.128.|
|00001780| 09 09 09 2f 2a 20 61 70 | 70 6c 69 63 61 74 69 6f |.../* ap|plicatio|
|00001790| 6e 27 73 20 6d 65 6e 75 | 20 62 61 72 20 2a 2f 0d |n's menu| bar */.|
|000017a0| 23 64 65 66 69 6e 65 09 | 72 41 62 6f 75 74 41 6c |#define.|rAboutAl|
|000017b0| 65 72 74 09 31 32 38 09 | 09 09 09 2f 2a 20 61 62 |ert.128.|.../* ab|
|000017c0| 6f 75 74 20 61 6c 65 72 | 74 20 2a 2f 0d 23 64 65 |out aler|t */.#de|
|000017d0| 66 69 6e 65 09 72 44 6f | 63 57 69 6e 64 6f 77 09 |fine.rDo|cWindow.|
|000017e0| 31 32 38 09 09 09 09 2f | 2a 20 61 70 70 6c 69 63 |128..../|* applic|
|000017f0| 61 74 69 6f 6e 27 73 20 | 77 69 6e 64 6f 77 20 2a |ation's |window *|
|00001800| 2f 0d 23 64 65 66 69 6e | 65 09 72 56 53 63 72 6f |/.#defin|e.rVScro|
|00001810| 6c 6c 09 31 32 38 09 09 | 09 09 2f 2a 20 76 65 72 |ll.128..|../* ver|
|00001820| 74 69 63 61 6c 20 73 63 | 72 6f 6c 6c 62 61 72 20 |tical sc|rollbar |
|00001830| 63 6f 6e 74 72 6f 6c 20 | 2a 2f 0d 23 64 65 66 69 |control |*/.#defi|
|00001840| 6e 65 09 72 48 53 63 72 | 6f 6c 6c 09 31 32 39 09 |ne.rHScr|oll.129.|
|00001850| 09 09 09 2f 2a 20 68 6f | 72 69 7a 6f 6e 74 61 6c |.../* ho|rizontal|
|00001860| 20 73 63 72 6f 6c 6c 62 | 61 72 20 63 6f 6e 74 72 | scrollb|ar contr|
|00001870| 6f 6c 20 2a 2f 0d 0d 2f | 2a 20 54 68 65 20 66 6f |ol */../|* The fo|
|00001880| 6c 6c 6f 77 69 6e 67 20 | 63 6f 6e 73 74 61 6e 74 |llowing |constant|
|00001890| 73 20 61 72 65 20 75 73 | 65 64 20 74 6f 20 69 64 |s are us|ed to id|
|000018a0| 65 6e 74 69 66 79 20 6d | 65 6e 75 73 20 61 6e 64 |entify m|enus and|
|000018b0| 20 74 68 65 69 72 20 69 | 74 65 6d 73 2e 20 54 68 | their i|tems. Th|
|000018c0| 65 20 6d 65 6e 75 20 49 | 44 73 0d 20 20 20 68 61 |e menu I|Ds. ha|
|000018d0| 76 65 20 61 6e 20 22 6d | 22 20 70 72 65 66 69 78 |ve an "m|" prefix|
|000018e0| 20 61 6e 64 20 74 68 65 | 20 69 74 65 6d 20 6e 75 | and the| item nu|
|000018f0| 6d 62 65 72 73 20 77 69 | 74 68 69 6e 20 65 61 63 |mbers wi|thin eac|
|00001900| 68 20 6d 65 6e 75 20 68 | 61 76 65 20 61 6e 20 22 |h menu h|ave an "|
|00001910| 69 22 20 70 72 65 66 69 | 78 2e 20 2a 2f 0d 23 64 |i" prefi|x. */.#d|
|00001920| 65 66 69 6e 65 09 6d 41 | 70 70 6c 65 09 09 09 09 |efine.mA|pple....|
|00001930| 09 31 32 38 09 09 2f 2a | 20 41 70 70 6c 65 20 6d |.128../*| Apple m|
|00001940| 65 6e 75 20 2a 2f 0d 23 | 64 65 66 69 6e 65 09 69 |enu */.#|define.i|
|00001950| 41 62 6f 75 74 09 09 09 | 09 09 31 0d 0d 23 64 65 |About...|..1..#de|
|00001960| 66 69 6e 65 09 6d 46 69 | 6c 65 09 09 09 09 09 31 |fine.mFi|le.....1|
|00001970| 32 39 09 09 2f 2a 20 46 | 69 6c 65 20 6d 65 6e 75 |29../* F|ile menu|
|00001980| 20 2a 2f 0d 23 64 65 66 | 69 6e 65 09 69 4e 65 77 | */.#def|ine.iNew|
|00001990| 09 09 09 09 09 31 0d 23 | 64 65 66 69 6e 65 09 69 |.....1.#|define.i|
|000019a0| 43 6c 6f 73 65 09 09 09 | 09 09 34 0d 23 64 65 66 |Close...|..4.#def|
|000019b0| 69 6e 65 09 69 51 75 69 | 74 09 09 09 09 09 31 32 |ine.iQui|t.....12|
|000019c0| 0d 0d 23 64 65 66 69 6e | 65 09 6d 45 64 69 74 09 |..#defin|e.mEdit.|
|000019d0| 09 09 09 09 31 33 30 09 | 09 2f 2a 20 45 64 69 74 |....130.|./* Edit|
|000019e0| 20 6d 65 6e 75 20 2a 2f | 0d 23 64 65 66 69 6e 65 | menu */|.#define|
|000019f0| 09 69 55 6e 64 6f 09 09 | 09 09 09 31 0d 23 64 65 |.iUndo..|...1.#de|
|00001a00| 66 69 6e 65 09 69 43 75 | 74 09 09 09 09 09 33 0d |fine.iCu|t.....3.|
|00001a10| 23 64 65 66 69 6e 65 09 | 69 43 6f 70 79 09 09 09 |#define.|iCopy...|
|00001a20| 09 09 34 0d 23 64 65 66 | 69 6e 65 09 69 50 61 73 |..4.#def|ine.iPas|
|00001a30| 74 65 09 09 09 09 09 35 | 0d 23 64 65 66 69 6e 65 |te.....5|.#define|
|00001a40| 09 69 43 6c 65 61 72 09 | 09 09 09 09 36 0d 0d 23 |.iClear.|....6..#|
|00001a50| 65 6e 64 69 66 20 5f 5f | 54 45 43 4f 4d 4d 4f 4e |endif __|TECOMMON|
|00001a60| 5f 5f 0d 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |__......|........|
|00001a70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a80| 00 00 01 00 00 00 01 1e | 00 00 00 1e 00 00 00 1e |........|........|
|00001a90| 65 64 20 69 6e 25 6b 45 | 00 00 50 20 74 6f 52 4d |ed in%kE|..P toRM|
|00001aa0| 3b 20 74 72 79 20 22 26 | 50 20 2d 3e 25 6e 22 00 |; try "&|P ->%n".|
|00001ab0| 0a 54 45 43 6f 6d 6d 6f | 6e 2e 68 6d 02 00 00 00 |.TECommo|n.hm....|
|00001ac0| 54 45 58 54 4d 50 53 20 | 01 00 00 14 00 c0 00 00 |TEXTMPS |........|
|00001ad0| 00 00 54 45 58 54 4d 50 | 53 20 01 00 00 14 00 c0 |..TEXTMP|S ......|
|00001ae0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001af0| 00 00 a1 4b 04 00 00 00 | 19 e3 00 00 01 3c 6e 6f |...K....|.....<no|
|00001b00| 6e 50 20 64 65 6c 65 74 | 65 64 00 00 64 65 6c 65 |nP delet|ed..dele|
|00001b10| 74 65 20 26 45 00 73 69 | 7a 65 6f 66 20 65 6d 70 |te &E.si|zeof emp|
|00001b20| 74 79 45 00 63 6c 61 73 | 73 20 64 65 66 69 6e 65 |tyE.clas|s define|
|00001b30| 64 20 77 69 74 68 69 6e | 20 73 69 7a 65 6f 66 00 |d within| sizeof.|
|00001b40| 73 69 7a 65 6f 66 28 76 | 6f 69 64 29 00 00 26 20 |sizeof(v|oid)..& |
|00001b50| 6e 6f 6e 2d 6c 76 61 6c | 75 65 00 00 74 68 69 73 |non-lval|ue..this|
|00001b60| 00 00 60 60 74 68 69 73 | 27 27 20 75 73 65 64 20 |..``this|'' used |
|00001b70| 69 6e 20 6e 6f 6e 43 20 | 63 6f 6e 74 65 78 74 00 |in nonC |context.|
|00001b80| 00 00 00 1a 03 01 40 09 | 00 00 05 33 2e 31 61 38 |......@.|...3.1a8|
|00001b90| 0d 4d 50 57 20 43 2b 2b | 20 33 2e 31 61 39 00 00 |.MPW C++| 3.1a9..|
|00001ba0| 01 00 00 00 01 1e 00 00 | 00 1e 00 00 00 1e 00 1b |........|........|
|00001bb0| 5f 08 0c 20 00 00 00 1c | 00 1e ff ff 00 00 00 00 |_.. ....|........|
|00001bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+